<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>MapboxGL</title>
    <link href='lib/mapbox-gl.css' rel='stylesheet' />
    <style>
        html, body, .map {
            padding: 0;
            margin: 0;
            height: 100%;
            overflow: hidden;
        }
        .menu {
            float: left;
            width: 10rem;
            background: #dddddd;
            height: 100%;
            transition: width 1s;
        }
        .menu.close {
            width: 0;
            transition: width 1s;
        }
        .map {
            float: left;
            width: calc(100% - 10rem);
            transition: width 1s;
        }
        .map.close {
            width: 100%;
            transition: width 1s;
        }
        .map .button {
            position: absolute;
            top: 20px;
            left: 0;
            z-index: 99;
        }

        .mouse-position {
            position: absolute;
            bottom: 20px;
            left: 20px;
            z-index: 99;
            background: rgba(255, 255, 255, 0.6);
            padding: 5px 10px;
            border-radius: 5px;
        }
        .map-zoom {
            position: absolute;
            top: 20px;
            left: 50%;
            z-index: 99;
            background: rgba(255, 255, 255, 0.6);
            padding: 5px 10px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<div class="menu" id="menu">
    menu
</div>
<div id='map' class="map">
    <button id="menuToggle" class="button">menuToggle</button>
    <div class="mouse-position"></div>
    <div class="map-zoom"></div>
</div>
<script src='lib/mapbox-gl.js'></script>
<script src='js/lesson4-1.js'></script>
</body>
</html>